﻿#ifndef NSSHARE_SYS_NAMED_PIPE_DEFINE_H_
#define NSSHARE_SYS_NAMED_PIPE_DEFINE_H_

#include "../platform.h"

namespace nsshare
{
namespace sys
{

namespace PipeDirection
{

enum Value
{
    kIn     = PIPE_ACCESS_INBOUND,
    kOut    = PIPE_ACCESS_OUTBOUND,
    kDuplex = PIPE_ACCESS_DUPLEX,
};
}

namespace PipeOption
{
enum Value
{
    kNone               = 0,
    kWriteThrough       = FILE_FLAG_WRITE_THROUGH,
};
}

namespace PipeTransmissionMode
{
enum Value
{
    kStream     = PIPE_TYPE_BYTE | PIPE_READMODE_BYTE,
    kMessage    = PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE,
};
}

}

}

#endif